<!-- 条件筛选 -->
<template>
  <div class="conditon-container">
    <BackgroundBox>
      <el-radio-group :model-value="props.Group" @change="headleGroup">
        <el-radio :value="item.value" v-for="item in selectRef" :key="item.value">{{ item.label }}</el-radio>
      </el-radio-group>
    </BackgroundBox>
  </div>
</template>

<script setup>
import BackgroundBox from "@/components/BackgroundBox/index.vue"
import { ref } from "vue"
const props = defineProps({
  Group:{
    type:Number,
    default: 0,
  }
})
const selectRef = ref([
  {
    label:"已分配",
    value: 0,
  },
  {
    label:"未分配",
    value: 1
  }
])
const emit = defineEmits(["headleGroup"])
const headleGroup = (value) =>{
  emit("headleGroup",value)
}
</script>

<style lang="less" scoped>
.back-container{
  padding: 20px;
}
</style>